package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bbzn.device.client.dao.history.GpsHisMapper;
import java.util.List;
import com.bbzn.device.client.dataobject.GpsHis;
import com.bbzn.device.client.service.GpsHisService;

@Service
public class GpsHisServiceImpl implements GpsHisService {

    @Resource
    private GpsHisMapper gpsHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return gpsHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GpsHis record) {
        return gpsHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(GpsHis record) {
        return gpsHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(GpsHis record) {
        return gpsHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(GpsHis record) {
        return gpsHisMapper.insertSelective(record);
    }

    @Override
    public GpsHis selectByPrimaryKey(Long id) {
        return gpsHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(GpsHis record) {
        return gpsHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GpsHis record) {
        return gpsHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GpsHis> findByAll(GpsHis gpsHis) {
        return gpsHisMapper.findByAll(gpsHis);
    }

    @Override
    public int updateBatch(List<GpsHis> list) {
        return gpsHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<GpsHis> list) {
        return gpsHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<GpsHis> list) {
        return gpsHisMapper.batchInsert(list);
    }

    @Override
    public int deleteByImei(String imei) {
        return gpsHisMapper.deleteByImei(imei);
    }
}

